package com.ram.service.impl;

import com.ram.mapper.RepairAttachmentMapper;
import com.ram.pojo.RepairAttachment;
import com.ram.service.RepairAttachmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class RepairAttachmentServiceImpl implements RepairAttachmentService {
    @Autowired
    private RepairAttachmentMapper mapper;
    @Override
    public List<RepairAttachment> listByRequestId(Integer requestId) { return mapper.listByRequestId(requestId); }
    @Override
    public void add(RepairAttachment attachment) { mapper.insert(attachment); }
    @Override
    public void deleteById(Integer id) { mapper.deleteById(id); }
} 